#include"stack.hpp"
#include"queue.hpp"
void test1()
{
    hcc::stack<int> s;
    s.push(1);
    s.push(2);
    s.push(3);
    s.push(4);
    s.push(5);
   // for(auto e:s)
   // {
   //     cout<<e<<"->";
   // }
   // cout<<endl;
    cout<<s.empty()<<endl;
    cout<<s.top()<<endl;
    s.pop();
    cout<<s.top()<<endl;
}
void test2()
{
    hcc::queue<int> q;
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
    q.push(6);
    for(auto e:q)
    {
        cout<<e<<"->";
    }
    cout<<endl;
    cout<<q.front()<<endl;
    cout<<q.back()<<endl;
    q.pop();
    cout<<q.back()<<endl;
    cout<<q.front()<<endl;
    cout<<q.empty()<<endl;
}
int main()
{
    //test1();
    test2();
    return 0;
}
